package games.tankwars.entities;

import java.awt.geom.Dimension2D;
import java.awt.geom.Point2D;

public class Tank extends vooga.entities.Image 
{
	private static int MY_STARTING_HEALTH = 100;
	private int myHealth;
	private static int MY_STARTING_BULLETS = 100;
	private int myBullets;
	private boolean isDead;
	
	public Tank(Point2D topLeft, Dimension2D size, String image)
	{
		super(topLeft, size, image);
		myHealth = MY_STARTING_HEALTH;
		myBullets = MY_STARTING_BULLETS;
		setDestructible(false);
	}

	public void setHealth(int health)
	{
		myHealth = health;
	}
	
	public int getHealth()
	{
		return myHealth;
	}
	
	public void reduceHealth()
	{
			myHealth--;
	}
	
	public int getBullets()
	{
		return myBullets;
	}
	
	public void reduceBullets()
	{
		myBullets--;
	}
}
